<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
    <com1></com1>
    <com1 title="wwwww"></com1>
    <p v-for="item in items">{{item.name}}</p>
</div>


<script src="../js/vue.js"></script>
<script>
    Vue.component(`com1`, {
        template: `<button v-on:click="count++">You clicked me {{ count }}-----{{title}}times.</button>`,
        props:['title'],
        data() {
            return {
                count: 0
            }
        }
    })
    new Vue({
        el: "#app",
        data: {
            items:[
                {name: 'kongwg'},
                {name: 'baba'}
            ]
        },
        methods: {}
    })
</script>
</body>
</html>